package com.jyxd.web.service.hisyb;

import com.jyxd.web.dao.patient.PatientDao;
import com.jyxd.web.data.hisview.HisYb;
import com.jyxd.web.hisyb.HisYbDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class HisybService {

    @Autowired
    private HisYbDao hisYbDao;

    @Autowired
    private PatientDao patientDao;


    public boolean insert(HisYb hisYb){
        return hisYbDao.insert(hisYb);
    }

    public boolean update(HisYb hisYb){
        return hisYbDao.update(hisYb);
    }

    public HisYb queryData(String id){
        return hisYbDao.queryData(id);
    }

    public List<HisYb> queryYBDataAll(){
        return patientDao.queryYBDataAll();
    }

}
